import { Boolean, Code, Entity, PrimaryUuid, Uuid } from '@sker/core'

@Entity({
    name: 'wx_qrcode'
})
export class WxQrcode {

    @PrimaryUuid()
    id: string;

    @Code({ comment: '类型', default: 'gym_teacher', nullable: true })
    type: string;

    @Boolean({ comment: '可用' })
    status: boolean;

    @Code({ comment: '凭证', default: '', nullable: true })
    token: string;

    @Uuid({ comment: '通过type和resource_id定位数据', nullable: true })
    resource_id: string;
}
